﻿@page "/Scatter/Basic"
@using LiveChartsCore.SkiaSharpView.Blazor
@using LiveChartsCore.SkiaSharpView
@using LiveChartsCore
@using LiveChartsCore.Defaults

<CartesianChart
	Series="Series">
</CartesianChart>

@code {
    private ISeries[] Series { get; set; }

    protected override void OnInitialized()
    {
        var values = new ObservablePoint[]
        {
            new(2.2, 5.4),
            new(3.6, 9.6),
            new(9.9, 5.2),
            new(8.1, 4.7),
            new(5.3, 7.1)
        };

        Series = new ISeries[]
        {
            new ScatterSeries<ObservablePoint>
            {
                Values = values
            }
        };
    }
}
